<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <div id="app">
            <img :src="imgSrc" :style="{ border:border, fontSize: fontSize }" alt="" />
        </div>
        <script src="../vue.js"></script>
        <script>
            // let age = 18;
            // let obj = {
            //     age, // age: age
            // };
            // console.log(obj);
            new Vue({
                el: '#app',
                data: {
                    imgSrc: '../i.jpg',
                    border: '1px solid #000',
                    fontSize: '22px',
                },
                // data () {
                //     return {
                        
                //     }
                // }
            });

            let datas = {
                age: 22,
            };
            console.log(datas.age);
            datas.age = 100;

            function data() {
                // let obj = {
                //     age: 22,
                // };
                this.age = 18;
                // return obj;
            }
            let aaaaaaaa = new data();
            let aaaaaaab = new data();
            aaaaaaaa.age = 100;
            aaaaaaab.age = 200;
            console.log(aaaaaaaa == aaaaaaab); // false
            console.log(aaaaaaaa);
            console.log(aaaaaaab);
        </script>
    </body>
</html>
